<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.js"></script>
    <script src="js/axios.js"></script>
</head>
<body>
<button @click="sendRequest">发送get请求</button>
</body>
<script>
new Vue ({
    el:"button",
    data:{

    },
    methods:{
        sendRequest:()=>{
        axios.get("./data.json").then((response)=>{
                console.log(response.data)
            }).catch((err)=>{
                console.log(err)
            })
        }
    }
})
</script>
</html>